# # 01
# import sys
# import platform
#
#
# print(sys.version)
# print(platform.python_version())

# # 02
# import math
#
# def area(r):
#     area_ = math.pi * r * r
#     return f'{area_:.2f}'
#
# print(area(19))

# # 03
# import datetime
#
# print(datetime.datetime.strftime(datetime.datetime.now(), '%Y/%m/%d@%H:%M:%S'))

# # 04
# print(sum([i**3 for i in range(101, 201)]))

# # 05
# s = 0
# for i in range(1, 100000):
#     if i % 2 == 0 or i % 3 == 0 or i % 5 == 0:
#         pass
#     else:
#         s = s + i
#
# print(s)

# # 06
# def drop_vowel(s):
#     result = ''
#     for c in s:
#         if c in 'aeiou':
#             pass
#         else:
#             result += c
#     return result
#
# print(drop_vowel('ahfjewoiugregjndskgaiuaudouidsa'))

# 07
from collections import OrderedDict

def my_distinct(li):
    od = OrderedDict()
    for l in li:
        if l in od:
            pass
        else:
            od[l] = 0
    res = []
    for k in od:
        res.append(k)
    return res

print(my_distinct([1,1,1,2,3,4,3,1,213,2,32,32,1,2,321,23,1,32]))

# 08
def my_transpose(li):
    m = len(li)
    n = len(li[0])
    res = []
    for i in range(n):
        arr = []
        for j in range(m):
            arr.append(li[j][i])
        res.append(arr)
    return res

print(my_transpose([[1,2],[3,4]]))

# 09
from collections import Counter

def count_chars(s):
    c = Counter(s)
    d = {}
    for item in c:
        d[item] = c[item]
    return d

print(count_chars('google.com'))
